package com.fqgj.sentry;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySources;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(scanBasePackages = {"com.fqgj.sentry", "com.fqgj.base.services.oss"})
@ServletComponentScan(basePackageClasses = {com.fqgj.log.filter.TraceFilter.class}, basePackages = "com.fqgj.sentry")
@ImportResource({"classpath:app-redis.xml"})
@EnableScheduling
@NacosPropertySources({
        @NacosPropertySource(dataId = "risk-sentry", autoRefreshed = true)
})
public class ApiRestApplication {
    public static void main(String[] args) {
        SpringApplication.run(ApiRestApplication.class, args);
    }
}
